package com.gxuwz.prrs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.gxuwz.prrs.R;
import com.gxuwz.prrs.constant.Constants;
import com.gxuwz.prrs.utils.NavigationUtils;

/**
 * @author 张钧
 * 通知详情页面
 */
public class NoticeDetailActivity extends AppCompatActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_notice_detail);
		NavigationUtils.setRedirectBottom(this);
		NavigationUtils.setBack(R.id.back,this);
		Intent intent = getIntent();
		Bundle bundle = intent.getExtras();
		String title = bundle.getString(Constants.TITLE);
		String content = bundle.getString(Constants.CONTENT);
		String noticeTime = bundle.getString(Constants.NOTICE_TIME);
		TextView titleView = findViewById(R.id.title1);
		TextView contentView = findViewById(R.id.content1);
		TextView noticeTimeView = findViewById(R.id.notice_time1);
		titleView.setText(title);
		contentView.setText(content);
		noticeTimeView.setText(noticeTime);
	}
}
